﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Dwg_output
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main(string[] args)
        {
            if (args == null || args.Length == 0)
            {
                Console.WriteLine("未传入任何参数");
                return;
            }
            else
            {
                GlobalPath.WorkingDirectory = args[0];

            }

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1_WireDwg());
            //ProgressForm progressForm = new ProgressForm();
            //if (progressForm.ShowDialog()==DialogResult.OK)
            //{
            //    Application.Run(new Form1_WireDwg());
            //}
            //else
            //{
            //    Application.Exit();
            //}
           
        }
    }

    public static class GlobalPath {

         public static string WorkingDirectory { get; set; }
    }

}
